import {
    request
} from "./request";

export function getWorks(userid) {
    return request({
        url: '/works/getUserWorks',
        method: 'get',
        params: {
            userid
        }
    })
}

export function getCollectWorks(userid) {
    return request({
        url: '/works/getCollectWorks',
        method: 'get',
        params: {
            userid
        }
    })
}
export function getNum(works_id) {
    return request({
        url: '/works/getnumWorks',
        method: 'get',
        params: {
            works_id
        }
    })
}

export function changeCollect(worksid, userid) {
    return request({
        url: '/works/changeCollect',
        method: 'get',
        params: {
            worksid,
            userid
        }
    })

}